package net.joyphper.ctrl.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller("net.joyphper.ctrl.web.IndexCtrl")
public class IndexCtrl {
	
	@RequestMapping("/index.htm")
	private String index() throws Exception {
		return "redirect:auth/login.htm";
	}
//	
//	@RequestMapping("/index/{id:[\\d]+}.htm")
//	private String index(@PathVariable Long id) throws Exception {
//		System.out.println("/index/{id:[\\d]+}.htm"+id);
//		return "/index";
//	}
//	
//	@RequestMapping("/index/{id:[a-zA-z]+}.htm")
//	private String index(@PathVariable String id) throws Exception {
//		System.out.println("/index/{id:[a-zA-z]+}.htm"+id);
//		return "/index";
//	}
}
